<h1>Klijenti</h1>
<p>
    <strong><?= $this->Html->link("+ Novi klijent", "/klijenti/novi") ?></strong>
    | <?= $this->Html->link('Prodavnice', '/prodavnice') ?>
</p>
<?= $this->element('entity_table', array(
	"columns" => array(
		"Naziv" => "Client.name",
		"Rabat" => array("value"=>"ClientRebate.0.value", "function"=>'sprintf("%.2f", {VAL}) . "%"'),
		"Efektivni datum rabata" => array("value"=>"ClientRebate.0.effective_date", "function"=>'local_date("{VAL}")')
	),
	"rows" => $data,
	"row_id" => "Client.id",
	"delete_confirm" => "Da li želite da obrišete klijenta: {Client.name}?"
)) ?>
